package com.job.createType.singleton.idler;

import java.io.IOException;
import java.io.InputStream;

/**
 * @Author 王博
 * @DateTime 2025-04-01 08:34
 */
public class Main {
    public static void main(String[] args) throws IOException {
        Runtime runtime = Runtime.getRuntime();
        Process process = runtime.exec("ipconfig");
        InputStream inputStream = process.getInputStream();
        byte[] buffer = new byte[1024 * 1024 * 100];
        int len = inputStream.read(buffer);
        System.out.println(new String(buffer, 0, len,"gbk"));
    }
}
